home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-03-08 | 32.7 KB | 1,246 lines |
- ; CD Answer Installation Script - Tech Support Version jdk,ejf
- ; <<CDA>> Aug 18 1992;3.1
-
- ; 3M CPS Solutions modified by CKL 3/8/95
- ; written for the 3M MSDS DEMO CD-ROM application
-
- BREAK abort
-
- ; install disk
- PARSE_PATH <$ProgDir>
- SET insdrive = <$Drive>
- SET ins = <insdrive>\INSTALL
- SET curdisk = 1
- GOSUB need_disk
-
- ; here are some defaults:
-
- ; default destination drive
- PARSE_PATH <$CurDir>
- SET def_dest = C:\
- IF NOT "<$Drive>"=="<insdrive>" DO SET def_def = <$Drive>
-
- ; language
- SET def_lang = <$Language>
-
- ; application name(s) (4 char ident(s) on CD-ROM)
- READFILE names = <ins>\APPLNAME.
-
- ; product name (application name for batch file, subdirectory name)
- READFILE prod = <ins>\PRODNAME.
-
- ; default dest drive and directory
- PARSE_PATH <def_dest><prod>.CD
- SET dstdrive = <$Drive>
- SET path = <$Dir>
- CD <dstdrive>\
-
-
- ; read and display Application Installation Screen
- IF NOT EXISTS <insdrive>\INSTALL\PRODSCRN.<def_lang> GOTO no_banner
- READFILE screen = <insdrive>\INSTALL\PRODSCRN.<def_lang>
- GOTO show_banner
- :no_banner
- SET screen =
- ---- CD Answer Installation for:\n\n
- ---- <prod>\n\n
- ---- Application(s): <names>
- :show_banner
- CLEAR
- TEXT <screen>
- SET screen =
- WAIT
-
- SET def_drive=<dstdrive>
- SET def_path=<path>
-
- GOTO okdir
- :getdir
- CLEAR
- TEXT \nError -\n\n
- ---- The path "<dstdrive><path>" is not allowed!\n
- ----There must be both a drive and a valid subdirectory name in order
- ---- to install the software.
- WAIT
- :okdir
- CLEAR
- TEXT The retrieval software must be installed on your hard disk or on a
- ---- formatted floppy disk.\n\n
- ----The standard values for a stand-alone installation are drive <def_drive>
- ---- (normally the hard disk), and a subdirectory named <def_path>.\n
- ----Network installations will most likely use other values.\n\n
- ----To use these values, press the ┘ (Enter) key twice. To alter them,\n
- ----type the new drive or subdirectory at the appropriate prompt,\n
- ----then type ┘ (Enter).\n\n
-
- INPUT 6, 11, 5 dstdrive = Install on drive ?
- INPUT 6, 13, 40 path = Install in directory ?
- SET dest = <dstdrive><path>
- SET confile = <ins>\_DW_.CFG
-
- IF "<dstdrive>"=="" GOTO getdir
- IF "<path>"=="\" GOTO getdir
- IF "<path>"=="" GOTO getdir
- IF NOT DIREXISTS <dstdrive>\ GOTO getdir
-
- CD <dstdrive>\
-
- IF NOT DIREXISTS <dest> GOTO nopath
- IF NOT EXISTS <dest>\DW.EXE GOTO nopath
- CLEAR
- TEXT The directory "<dest>" already exists.
- NEWMENU ?, 3, 54
- MENU Remove the old version; install new version
- MENU Remove the old version; do not install new software
- MENU Alter configuration; do not copy software
- MENU Stop the installation without making any changes
-
- CHOICE 1
- CLEAR
- TEXT Deleting previous contents of <dest>...
- FOREACH name = <names>
- DEL <dest>\<name>*.*
- NEXT
- DEL <dest>\FS_*.DRV
- DEL <dest>\SC_*.DRV
- DEL <dest>\PR_*.DRV
- DEL <dest>\GR_*.DRV
- DEL <dest>\_DW_*.*
- DEL <dest>\ADL_MSGS.*
- DEL <dest>\DW.EXE
- DEL <dest>\UPDATE.EXE
- GOTO okpath
-
- CHOICE 2
- CLEAR
- TEXT Removing <dest> directory...
- FOREACH name = <names>
- DEL <dest>\<name>*.*
- NEXT
- DEL <dest>\FS_*.DRV
- DEL <dest>\SC_*.DRV
- DEL <dest>\PR_*.DRV
- DEL <dest>\GR_*.DRV
- DEL <dest>\_DW_*.*
- DEL <dest>\ADL_MSGS.*
- DEL <dest>\DW.EXE
- DEL <dest>\UPDATE.EXE
- IF NOT EXISTS <dest>\*.* GOTO remdest
- TEXT <dest> directory has unknown files, directory not removed!!
- WAIT
- GOTO norem
- :remdest
- RD <dest>
- :norem
- DEL <dstdrive>\<prod>.BAT
- GOTO end2
-
- CHOICE 3
- SET alter = Y
- SET confile = <dest>\_DW_.CFG
- GOTO okpath
-
- CHOICE 4
- GOTO end2
- ENDCHOICES
-
- :nopath
- MD <dest>
- IF NOT DIREXISTS <dest> GOTO getdir
- :okpath
-
- ;----------------------------------------------------------------------------
-
- IF NOT EXISTS <confile> GOTO no_config
- DISP 5,14 Reading configuration...
- READCONFIG <confile>
- :no_config
- GOTO enter_drive
-
- ;----------------------------------------------------------------------------
- ; New On-Line Help System
-
- TEXT Next, the retrieval software needs to know how it should access the
- ---- CD-ROM. There are two access methods possible:\n\n
- ---- - via a CD-ROM device driver\n
- ---- - via a logical DOS drive letter, e.g. E:\n\n
- ----Certain of these access methods are more applicable to network and other
- ---- operating environments, e.g. Microsoft Extensions, OS/2, etc.\n
- ----If you would like more information on these topics, select menu option
- ---- two below. Select option one if you are ready to continue.
- NEWMENU ?, 12, 25
- MENU Continue installation
- MENU Help on CD-ROM device drivers, DOS drive letters, etc.
-
- CHOICE 1
- CLEAR
- GOTO cont_inst
-
- CHOICE 2
- CLEAR
- SET helpdef=1
- GOTO help_menu
- ENDCHOICES
-
- :help_menu
- TEXT Select the topic about which you would like to read more.\n\n
- ----Select the last menu option when you are ready to continue the installation.
- NEWMENU ?, 6, 25
- MENU CD-ROM device drivers
- MENU CD-ROM device names
- MENU Logical DOS drive letters (e.g. Microsoft Extensions)
- MENU Network considerations
- MENU OS/2, Soft AT/Soft PC, and other environments
- MENU Manual configuration options
- MENU Return to installation
-
- IF <helpdef>==1 DO MENU_DEFAULT 1
- IF <helpdef>==2 DO MENU_DEFAULT 2
- IF <helpdef>==3 DO MENU_DEFAULT 3
- IF <helpdef>==4 DO MENU_DEFAULT 4
- IF <helpdef>==5 DO MENU_DEFAULT 5
- IF <helpdef>==6 DO MENU_DEFAULT 6
-
- CHOICE 1
- CLEAR
- SET helpdef=1
- GOTO drvrhelp1
-
- CHOICE 2
- CLEAR
- SET helpdef=2
- GOTO namehelp1
-
- CHOICE 3
- CLEAR
- SET helpdef=3
- GOTO mscdex1
-
- CHOICE 4
- SET helpdef=4
- CLEAR
- GOTO nethelp1
-
- CHOICE 5
- SET helpdef=5
- CLEAR
- GOTO os2help1
-
- CHOICE 6
- SET helpdef=6
- CLEAR
- GOTO config_help1
-
- CHOICE 7
- SET helpdef=7
- CLEAR
- GOTO cont_inst
- ENDCHOICES
- ;------------------- Device Driver Help -----------------------------------------------------------
- :drvrhelp1
- TEXT A typical PC consists of several standard components or devices,
- ---- e.g. keyboard, monitor, hard drive. A computer may also include several
- ---- non-standard devices, e.g. one or more CD-ROM readers,
- ---- network adapter cards, scanning devices, sound boards, etc.\n\n
- ----Support for a computer's standard devices are "built in" to the computer's
- ---- operating system or BIOS. To access these standard devices, you simply
- ---- turn your computer on and start typing. No additional software is required.
- NEWMENU ?, 11, 25
- MENU Continue with device driver help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- CLEAR
- GOTO drvrhelp2
-
- CHOICE 2
- CLEAR
- GOTO help_menu
-
- CHOICE 3
- CLEAR
- GOTO cont_inst
- ENDCHOICES
-
- :drvrhelp2
- TEXT To access non-standard devices, such as a CD-ROM reader, you must load a
- ---- device-related software program into your computer's operating environment.
- ---- This software is called a device driver.\n\n
- ----Device driver software is supplied by the manufacturer of the device, usually on a
- ---- diskette. The diskette includes an install program which
- ---- copies the driver software to your computer's hard drive. It also
- ---- adds a DEVICE= line to your system configuration file, CONFIG.SYS.
- ---- Here is an example of a typical DEVICE= line:\n
- ---- DEVICE = C:\CDROM\CDROM.SYS /D:DRIVE0
- NEWMENU ?, 11, 25
- MENU Continue with device driver help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- CLEAR
- GOTO drvrhelp3
-
- CHOICE 2
- CLEAR
- GOTO help_menu
-
- CHOICE 3
- CLEAR
- GOTO cont_inst
- ENDCHOICES
-
- :drvrhelp3
- TEXT When your computer starts or "boots" up, the operating system reads the
- ---- CONFIG.SYS file. For each DEVICE= line listed in the file, the operating
- ---- system attempts to load the driver specified into memory.
- ---- You will generally see a line or two of text displayed
- ---- on the screen as each device driver is loaded.\n\n
- ----If the device driver file is not found, or if there is a device conflict (see
- ---- next page), then the driver will fail to load.
- ---- Instead of seeing a message such as "Device successfully
- ---- installed" at boot-up, you will see a message such as "Failed to
- ---- load device".
- NEWMENU ?, 11, 25
- MENU Continue with device driver help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- CLEAR
- GOTO drvrhelp4
-
- CHOICE 2
- CLEAR
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :drvrhelp4
- TEXT Occasionally a CD-ROM reader will fail to operate correctly even
- ---- after following all of the manufacturer's instructions.
- ---- In this case, there may be a conflict between your CD-ROM adapter card and
- ---- another installed device.\n\n
- ----Generally speaking, each device installed in your computer must use a unique
- ---- interrupt request line (IRQ) and be assigned a unique memory (I/O) address.
- ---- If any two devices use the same IRQ or I/O address, then one or the
- ---- other will fail to work properly. You should contact the manufacturer's
- ---- technical support line for help in resolving this conflict.
- NEWMENU ?, 12, 25
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- CLEAR
- GOTO help_menu
-
- CHOICE 2
- CLEAR
- GOTO cont_inst
- ENDCHOICES
-
- ;--------------- Device Name Help ------------------------------------------
- :namehelp1
- SET helpdef=2
- TEXT The DOS operating system uses names to identify installed
- ---- device drivers. For CD-ROM devices, these names are assigned using the
- ---- "/D:{name}" switch on the DEVICE= line in the CONFIG.SYS file.
- ---- For example, the following line loads a device named DRIVE0:\n\n
- ---- DEVICE = C:\CDROM\CDROM.SYS /D:DRIVE0\n\n
- ----When you return to the CD Answer installation program, you will be prompted
- ---- for the name of the device assigned to your CD-ROM. If you prefer to
- ---- access your CD-ROM via a logical DOS drive letter (see next section),
- ---- then the assigned name is not important.
- NEWMENU ?, 12, 25
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- ;------- Microsoft Extensions Help ------------------------------------------
- :mscdex1
- TEXT Microsoft Extensions is a software program which "extends" a computer's
- ---- operating system (i.e. DOS) so that it can directly access the files on a
- ---- CD-ROM disc. \n\n
- ----Generally speaking, unless Microsoft Extensions or a
- ---- similar program is loaded, you can not do a directory listing (DIR) of the
- ---- files on a CD-ROM, nor can you copy or read them directly. Loading Extensions,
- ---- however, causes the CD-ROM disc to be treated as any other hard drive. The
- ---- only difference is that the files on the CD-ROM can not be deleted or changed.
- ---- This is because CD-ROM is a Read-Only media.
- NEWMENU ?, 11, 25
- MENU Continue with Microsoft Extensions help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO mscdex2
-
- CHOICE 2
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :mscdex2
- TEXTMicrosoft Extensions makes the CD-ROM files accessible by assigning the
- ---- next available DOS drive letter to the CD-ROM disc. DOS uses C: (drive letter
- ---- followed by a colon) to refer to a computer's hard drive. If a PC has only one
- ---- hard drive, then loading Microsoft Extensions will assign D:
- ---- to the CD-ROM disc. Similarly, if a PC has two hard drives, C: and D:,
- ---- then Extensions will assign E: to the CD-ROM disc.\n\n
- ----Note that Extensions allows you to specify a particular drive letter for
- ---- your CD-ROM. See your Microsoft Extensions documentation for more
- ---- information.
- NEWMENU ?, 11, 25
- MENU Continue with Microsoft Extensions help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO mscdex3
-
- CHOICE 2
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :mscdex3
- TEXT Most CD-ROM drive manufacturers distribute a copy of Microsoft Extensions
- ---- with their CD-ROM device drivers. The program is executed by typing MSCDEX
- ---- at the DOS command line, followed by the same "/D:{name}" switch
- ---- used in the CONFIG.SYS file, e.g., "MSCDEX /D:DRIVE0".\n\n
- ----This example tells Microsoft Extensions to provide a drive letter to
- ---- access the CD-ROM device named DRIVE0. If there is no CD-ROM device
- ---- named DRIVE0 loaded into the computer's memory, then Extensions will fail
- ---- to load properly.
- NEWMENU ?, 11, 25
- MENU Continue with Microsoft Extensions help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO mscdex4
-
- CHOICE 2
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :mscdex4
- TEXTThe CD Answer software you are installing can be configured to access the
- ---- CD-ROM via a DOS drive letter. However, unlike most CD-ROM applications,
- ---- which can only be configured to access the CD-ROM via a DOS drive letter,
- ---- CD Answer can also be configured to access the CD-ROM via a device driver.\n\n
- ----This ability to use either a device driver or a DOS drive letter is a definite
- ---- advantage since Microsoft Extensions, when loaded, uses some 27 KB of
- ---- conventional RAM memory.\n\n
- MENU Continue with Microsoft Extensions help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO mscdex5
-
- CHOICE 2
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :mscdex5
- TEXTIf you do not need to load Microsoft Extensions, then you should
- ---- configure CD Answer to access the CD-ROM via a device driver. When you
- ---- return to the installation, you will be given this opportunity.\n\n
- ----You may also want to examine your AUTOEXEC.BAT file. Many CD-ROM installation programs
- ---- insert the command to load Extensions into this file. This causes Extensions
- ---- to be automatically loaded each time you reboot your computer. Again, this
- ---- represents a substantial waste of convential DOS memory.
- NEWMENU ?, 11, 25
- MENU Continue with Microsoft Extensions help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO mscdex6
-
- CHOICE 2
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :mscdex6
- TEXT If you are having problems installing and/or loading Microsoft Extensions on
- ---- your computer, then you should consult the documentation which came with
- ---- your copy of Extensions and/or the CD-ROM drive. Here are some points to keep in mind:\n
- ---- 1. Make sure the CONFIG.SYS file has a LASTDRIVE= statement.\n
- ---- 2. If you are running DOS 5, you may need to load SETVER.EXE.\n
- ---- Consult your DOS 5 manual for more information.\n
- ---- 3. The CD-ROM drive must be correctly connected to the computer,\n
- ---- turned on, and there should be a CD-ROM disc in the drive.\n
- ---- 4. The CD-ROM device driver must have loaded successfully when the\n
- ---- computer was last booted.
- NEWMENU ?, 12, 25
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO help_menu
-
- CHOICE 2
- GOTO cont_inst
- ENDCHOICES
-
- :multihelp1
- CLEAR
- TEXTNeed to put multi-disc help here.
- NEWMENU ?, 12, 25
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO help_menu
-
- CHOICE 2
- GOTO cont_inst
- ENDCHOICES
-
- :nethelp1
- CLEAR
- TEXTThere are as many ways of accessing a networked CD-ROM device as there
- ---- are network operating systems (NOS). However, all of these different
- ---- access methods take one of two basic approaches:\n\n
- ---- - virtural CD-ROM device driver\n
- ---- - logical DOS drive letter\n\n
- ----In other words, the same issues which apply to stand-alone CD-ROM access
- ---- also apply to networked CD-ROM access. The only difference is that
- ---- the CD-ROM disc and the retrieval software are being shared.
- NEWMENU ?, 11, 25
- MENU Continue with network help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- CLEAR
- GOTO nethelp2
-
- CHOICE 2
- CLEAR
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :nethelp2
- TEXTThe network administrator, and/or the individual responsible
- ---- for administering the shared CD-ROMs, should be consulted before
- ---- installing a networked CD-ROM application. This person, or persons,
- ---- will need to answer one of the following two questions:\n\n
- ---- 1. If a virtual device driver is used, what is the device name?\n
- ---- 2. If a logical DOS drive letter is used, what is the drive letter?\n\n
- ----Once the CD-ROM access method issue is determined, the directory where
- ---- the retrieval software is to be installed will need to be configured.
- NEWMENU ?, 11, 25
- MENU Continue with network help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- CLEAR
- GOTO nethelp3
-
- CHOICE 2
- CLEAR
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :nethelp3
- TEXTWorkstations need to be able to open and read all files in the
- ---- shared directory. Additionally, they need to create, modify and delete
- ---- any temporary files created during the session. The steps necessary
- ---- to create this level of access vary with the network operating system.
- ---- For instance, in a Novell Netware 3.1 environment, the steps are:\n\n
- ---- 1. Users are "granted" all rights except Supervisor and Modify.\n
- ---- 2. All files are "flagged" RW and S (for read-write and shareable)\n
- ---- except for the DW.EXE file. This file needs to be flagged\n
- ---- RO and S (for read-only and shareable).
- NEWMENU ?, 11, 25
- MENU Continue with network help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- CLEAR
- GOTO nethelp4
-
- CHOICE 2
- CLEAR
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :nethelp4
- TEXTNon-Netware networks will use different terminology to describe these
- ---- procedures. Whatever the terminology, the following applies:\n\n
- ---- 1. If users do not have sufficient rights to the network directory\n
- ---- then running the application will result in I/O error messages.\n
- ---- 2. If all users have sufficient rights, but the files are not set up\n
- ---- to be shared, then only the first user to access the files will\n
- ---- be able to run the application. All subsequent users will get a\n
- ---- file-sharing error message.
- NEWMENU ?, 11, 25
- MENU Continue with network help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- CLEAR
- GOTO nethelp5
-
- CHOICE 2
- CLEAR
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :nethelp5
- TEXTAs a final step, the network administrator needs to modify the
- ---- start-up batch file. The
- ---- installation program you are now running will create a default
- ---- batch file named <prod>.BAT. This batch file performs
- ---- the following:\n\n
- ---- - takes users to <dstdrive> drive;\n
- ---- - changes to the <path> directory;\n
- ---- - launches the DW.EXE executable.\n\n
- ----This default batch file will need to be modified if your network
- ---- CD-ROM sharing software requires more commands.
- NEWMENU ?, 12, 25
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- CLEAR
- GOTO help_menu
-
- CHOICE 2
- GOTO cont_inst
- ENDCHOICES
-
- :os2help1
- CLEAR
- TEXTThe retrieval software you are installing is a DOS program. As such,
- ---- it should run in most DOS-emulation environments such as OS/2, Soft PC,
- ---- Soft AT, etc. In all of these cases, the retrieval software should be
- ---- configured to access the CD-ROM disc via a logical DOS drive letter.\n\n
- ----The software has been successfully tested in several of these
- ---- environments. One known problem occurs with earlier versions of IBM's
- ---- OS2CDROM.SYS device driver. If you encounter problems running under
- ---- OS/2, you should check the date and version number of this file. Files
- ---- dated after March 1992 should work correctly.
- NEWMENU ?, 12, 25
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO help_menu
-
- CHOICE 2
- GOTO cont_inst
- ENDCHOICES
-
- :config_help1
- CLEAR
- TEXTThe installation program you are running will prompt you for all necessary configuration
- ---- options, e.g. video display adapter, printer modes, etc. It will then
- ---- save your selections to a plain ASCII configuration file, <dest>\_DW_.CFG. Should you later
- ---- decide to change or override these original selections, you may either:\n\n
- ---- - rerun this install program\n
- ---- - edit the _DW_.CFG configuration file\n
- ---- - use command-line switches
- NEWMENU ?, 11, 25
- MENU Continue configuration help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO config_help2
-
- CHOICE 2
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :config_help2
- CLEAR
- TEXTYou may run this installation program whenever you wish to
- ---- change any of your installed options. Your new selections
- ---- will be written to the <dest>\_DW_.CFG configuation file.\n\n
- ----Once you are familiar with the configuration options, you may elect
- ---- to modify the _DW_.CFG file directly. One option which may require
- ---- direct modification is the DRIVER= line. This option tells the retrieval
- ---- software how to access the CD-ROM disc, i.e. either via a CD-ROM device
- ---- driver or via a logical DOS drive letter.
- NEWMENU ?, 11, 25
- MENU Continue configuration help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO config_help3
-
- CHOICE 2
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :config_help3
- CLEAR
- TEXTIf the install program you are running doesn't recognize a CD-ROM
- ---- driver, then you should complete the installation, and then modify the
- ---- _DW_.CFG file. The correct syntax for the line is:\n\n
- ---- Driver = "FS_ISGEN=<<device name>"\n\n
- ----FS_ISGEN is the name of the CD-ROM file system driver used by the
- ---- CD Answer retrieval software. In this example, <<device name> should be
- ---- changed to match the device name loaded in your CONFIG.SYS file on the
- ---- DEVICE=<<driver file> /D:{device name} line, e.g. DRIVE0.
- NEWMENU ?, 11, 25
- MENU Continue configuration help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO config_help4
-
- CHOICE 2
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :config_help4
- CLEAR
- TEXTTo have the retrieval software use a (different) logical DOS drive (and optional subdirectory path), you may
- ---- edit the DRIVER= line of the _DW_.CFG file so that it appears as:\n\n
- ---- Driver = "D:\"\n\n
- ----The D:\ in this example should be changed to match the
- ---- actual DOS drive letter you use to access your CD-ROM disc. You must
- ---- enclose the location in quotes.
- NEWMENU ?, 11, 25
- MENU Continue configuration help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO config_help5
-
- CHOICE 2
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :config_help5
- CLEAR
- TEXTThe CD Answer retrieval software's main executable program is called
- ---- DW.EXE. This executable will accept many of the _DW_.CFG options as
- ---- command line switches. For example, if the DOS drive letter used to
- ---- access the CD-ROM isn't permanently set, but is set to an environment
- ---- variable, then the batch file used to start CD Answer should
- ---- be modified as follows:\n\n
- ---- DW /D:<<env. variable>\n\n
- NEWMENU ?, 11, 25
- MENU Continue configuration help
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO config_help6
-
- CHOICE 2
- GOTO help_menu
-
- CHOICE 3
- GOTO cont_inst
- ENDCHOICES
-
- :config_help6
- CLEAR
- TEXTThe other switches available are:\n\n
- ---- /RO - starts the software in read-only mode\n
- ---- /SC:<<screen driver name>=<<driver options>\n
- ---- Note: /SC:? detects display automatically.\n
- ---- /L:<<language>\n
- ---- /P:<<printer driver name>=<<driver options>\n
- ---- /IO:<<I/O path> - location of _DW_.CFG file\n
- ---- /MK:<<path> - location of all application-specific files\n
- ---- /TMP:<<path> - directory for creation of temporary files\n\n
- NEWMENU ?, 11, 25
- MENU Return to help topics menu
- MENU Return to installation
-
- CHOICE 1
- GOTO help_menu
-
- CHOICE 2
- GOTO cont_inst
- ENDCHOICES
-
- ;----------------------------------------------------------------------------
- ;--------- End of Help: Continue Installation ------------------------------
- ;----------------------------------------------------------------------------
- ; Test for existence -and number- of installed CD-ROM drive letters.
- :bad_drive
- CLEAR
- TEXTThe syntax for the drive specification is incorrect.\n
- ----Please be sure to follow the examples.\n
- WAIT
-
- :enter_drive
- CLEAR
- PARSE_PATH <$CurDir>
- SET cd_letters = <$Drive>
- TEXT CD-ROM Drive Letter:\n\n
- ---- Enter the CD-ROM drive letter containing the 3M MSDS DEMO CD-ROM!\n
- ---- For example, if you access your CD-ROM drive as drive E:,\n
- ---- then enter "E:". Entering "E:\" is incorrect.\n
- INPUT 2,10,80 cd_letters = CD-ROM Drive Letter ?
- IF "<cd_letters>"=="" GOTO enter_drive
- ;;;;;;;;;;;;;;IF NOT "<cd_letters:3:1>"=="\" GOTO bad_drive
- IF NOT "<cd_letters:2:1>"==":" GOTO bad_drive
- IF NOT "<cd_letters:3:1>"=="" GOTO bad_drive
- IF "<cd_letters:1:1>"=="\" GOTO bad_drive
- IF DIREXISTS <cd_letters>\ GOTO ok_path
- GOTO bad_drive
-
- :ok_path
- CONFIG Driver = "<cd_letters>"
-
- :driver_okay
- IF NOT EXISTS <insdrive>\CDPINST.EXE GOTO :display
- IF NOT EXISTS <insdrive>\CDAUTHOR.CDP GOTO :display
- CALL cdpinst.exe <insdrive> <dest> <cd_letters>\DATA
- ;------ End of Driver Installations: Display Section Begins ----------------------------------------------------------------------
- :display
- CLEAR
- TEXT Display Choices:\n
- ---- Use the and arrows to select a screen type and
- ---- press ┘ (Enter)
-
- NEWMENU ? 6 46
- MENU Standard Screen - No graphics
- MENU VGA/SVGA Adaptor
- MENU MCGA Adaptor
- MENU EGA Adaptor
- MENU CGA Adaptor
- MENU Hercules Graphics Card
- MENU Olivetti, AT&T or Compaq Plasma
- MENU Full page display
-
- IF "<$Screen:1:3>"=="VGA" DO MENU_DEFAULT 2
- IF "<$Screen:1:4>"=="SVGA" DO MENU_DEFAULT 2
- IF "<$Screen:1:4>"=="MCGA" DO MENU_DEFAULT 3
- IF "<$Screen:1:3>"=="EGA" DO MENU_DEFAULT 4
- IF "<$Screen:1:3>"=="CGA" DO MENU_DEFAULT 5
- IF "<$Screen:1:3>"=="HER" DO MENU_DEFAULT 6
- IF "<$Screen:1:3>"=="COR" DO MENU_DEFAULT 8
- IF "<$Screen:1:3>"=="MDS" DO MENU_DEFAULT 8
-
- SET Port = N
-
- CHOICE 1
- SET scr_type = SC_STD
- SET Port = ?
- CHOICE 2
- SET scr_type = SC_VGA
- SET Port = ?
- CHOICE 3
- SET scr_type = SC_MCGA
- SET Port = ?
- CHOICE 4
- SET scr_type = SC_EGA
- SET Port = ?
- CHOICE 5
- SET scr_type = SC_CGA
- SET Port = ?
- CHOICE 6
- SET scr_type = SC_HERC
- CHOICE 7
- SET scr_type = SC_ATT
- SET Port = ?
- CHOICE 8
- SET scr_type = FP
- ENDCHOICES
-
- IF NOT "<scr_type>"=="FP" GOTO not_full_page
-
- CLEAR
- CLEAR
- TEXT Display Choices:\n
- ---- Use the and arrows to select a screen type and
- ---- press ┘ (Enter)
-
- NEWMENU ? 6 46
- MENU Cornerstone FullPage
- MENU MDS Genius
-
- IF "<$Screen:1:3>"=="COR" DO MENU_DEFAULT 1
- IF "<$Screen:1:3>"=="MDS" DO MENU_DEFAULT 2
-
- CHOICE 1
- SET scr_type = SC_CNRST
- CHOICE 2
- SET scr_type = SC_MDS
- ENDCHOICES
-
- :not_full_page
-
- SET extra =
- IF NOT "<Port>" == "?" GOTO no_scr_opts
-
- CLEAR
- TEXT Display Detail Choices:\n
- ---- Use the and arrows to select screen option and
- ---- press ┘ (Enter)
-
- NEWMENU ? 6 46
- MENU Standard Color or Monochrome Monitor
- MENU Portable Computer - Built-in Monochrome monitor
- IF "<scr_type>"=="SC_CGA" DO MENU Older Color Screens - interference or "snow"
-
- IF "<$Screen:-4>"=="PORT" DO MENU_DEFAULT 2
-
- CHOICE 2
- SET extra = P
- CHOICE 3
- SET extra = F
- ENDCHOICES
-
- :no_scr_opts
-
- CONFIG Screen = "<scr_type>=<extra>"
-
- CLEAR
- TEXT Copying Screen Driver...
- SET driver_name = <scr_type>.DRV
- GOSUB copy_driver
-
- ;----------------------------------------------------------------------------
-
- CLEAR
- TEXT Printer Choices:\n
- ---- Use the and arrows to select a printer type and
- ---- press ┘ (Enter)
-
- SET extra =
-
- NEWMENU ? 6 46
- MENU HP LaserJet family
- MENU HP DeskJet family
- MENU JLaser printer controller
- MENU Other printer
-
- CHOICE 1
- SET prn_type = PR_PCL?
- CHOICE 2
- SET prn_type = PR_DJ?
- CHOICE 3
- SET prn_type = PR_JL?
- CHOICE 4
- SET prn_type = PR_STD
- ENDCHOICES
-
- IF "<prn_type>" == "PR_PCL?" GOTO pr_type_1
- IF "<prn_type>" == "PR_DJ?" GOTO pr_type_2
- IF "<prn_type>" == "PR_JL?" GOTO pr_type_3
- IF "<prn_type>" == "PR_STD" GOTO pr_type_4
-
- :pr_type_1
-
- CLEAR
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU HP LaserJet(+), LaserJet 500(+), LaserJet 2000
- MENU HP LaserJet Series II, IID
- MENU HP LaserJet IIP(+), III(+), IIID, IIIP, IIISi
-
- CHOICE 1
- SET extra = R
- CHOICE 2
- SET extra = X
- CHOICE 3
- SET extra = XG
- ENDCHOICES
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU 300 Dpi ( 1Mb memory)
- MENU 150 Dpi (512Kb memory)
- MENU 75 Dpi (256Kb memory)
-
- CHOICE 1
- SET prn_type = PR_PCL30
- CHOICE 2
- SET prn_type = PR_PCL15
- CHOICE 3
- SET prn_type = PR_PCL75
- ENDCHOICES
-
- GOTO pr_type_ok
-
- :pr_type_2
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU HP DeskJet(+)
- MENU HP DeskJet 500
- MENU HP DeskJet 500C
-
- CHOICE 1
- SET extra = X
- CHOICE 2
- SET extra = XG
- CHOICE 3
- SET extra = XG
- ENDCHOICES
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU 300 Dpi
- MENU 150 Dpi
- MENU 75 Dpi
-
- CHOICE 1
- SET prn_type = PR_PCL30
- CHOICE 2
- SET prn_type = PR_PCL15
- CHOICE 3
- SET prn_type = PR_PCL75
- ENDCHOICES
-
- GOTO pr_type_ok
-
- :pr_type_3
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU HP LaserJet(+), LaserJet 500(+), LaserJet 2000
- MENU HP LaserJet (all other models)
- MENU Canon LBP (any models)
-
- CHOICE 1
- SET prn_type = PR_JLHP
- SET extra = R
- CHOICE 2
- SET prn_type = PR_JLHP
- SET extra = X
- CHOICE 3
- SET prn_type = PR_JLCAN
- ENDCHOICES
-
- GOTO pr_type_ok
-
- :pr_type_4
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU 8-bit PC-compatible character set
- MENU 7-bit National ASCII character set
-
- CHOICE 2
- SET extra = 7
- ENDCHOICES
-
- GOTO pr_type_ok
-
- :pr_detail
- CLEAR
- TEXT Printer Detail Choices:\n
- ---- Use the and arrows to select printer option and
- ---- press ┘ (Enter)
- RETURN
-
- :pr_type_ok
-
- SET port =
-
- NEWMENU ? 6 40
- MENU LPT1 Parallel Printer # 1
- MENU COM1 Serial Printer # 1
- MENU LPT2 Parallel Printer # 2
- MENU COM2 Serial Printer # 2
- MENU LPT3 Parallel Printer # 3
- MENU LPT4 Parallel Printer # 4
- MENU PRN DOS current printer
-
- CLEAR
- TEXT Printer Connection Choices:\n
- ---- Use the and arrows to select a printer port and
- ---- press ┘ (Enter)
-
- CHOICE 1
- SET port = LPT1,
- CHOICE 2
- SET port = COM1,
- CHOICE 3
- SET port = LPT2,
- CHOICE 4
- SET port = COM2,
- CHOICE 5
- SET port = LPT3,
- CHOICE 6
- SET port = LPT4,
- CHOICE 7
- SET port = PRN,
- ENDCHOICES
-
- CONFIG Printer = "<prn_type>=<port><extra>"
-
- CLEAR
- TEXT Copying Printer Driver...
- SET driver_name = <prn_type>.DRV
- GOSUB copy_driver
-
- ;----------------------------------------------------------------------------
-
- IF "<alter>"=="Y" GOTO done
-
- :read_disk
- GOSUB need_disk
-
- CLEAR
- TEXT Installing Application files...
- COPY_OPT <insdrive>\DISK<curdisk>\*.* <dest>
-
- ;Copy adl and dw message files
- IF NOT DIREXISTS <ins> GOTO skip_message_files
- COPY_OPT <ins>\_DW_MSGS.* <dest>
- COPY_OPT <ins>\ADL_MSGS.* <dest>
- COPY_OPT <ins>\UPDATE.EXE <dest>
- :skip_message_files
-
- CALC curdisk = <curdisk> + 1
- IF EXISTS <insdrive>MORE GOTO read_disk
-
- CONFIG Language = "<def_lang>"
- goto DONE
-
- :abort
- if "<dest>"=="" GOTO nofiles
- if "<alter>"=="Y" GOTO nofiles
- CLEAR
- TEXT \n\n!!! Installation Aborted !!!\n\n
- ---- Removing any copied files...
- UNCOPY
- :nofiles
- CLEAR
- TEXT \n\n!!! Installation Aborted !!!\n\n
- goto END
-
- :copy_driver
- IF EXISTS <ins>\<driver_name> GOTO ok_copy
- CALC curdisk = <curdisk> + 1
- GOSUB need_disk
- GOTO copy_driver
- :ok_copy
- COPY <ins>\<driver_name> <dest>
- RETURN
-
- :need_disk
- IF DIREXISTS <insdrive>\DISK<curdisk> DO RETURN
- :retry_disk2
- CLEAR
- TEXT Insert Install Disk Number <curdisk> and press ┘ (Enter) when ready.
- WAIT
- IF DIREXISTS <insdrive>\DISK<curdisk> DO RETURN
-
- CLEAR
- TEXT The disk inserted is not Installation Disk Number <curdisk> !
- NEWMENU ?, 3, 15
- MENU Retry
- MENU Abort
-
- CHOICE 1
- GOTO retry_disk2
- ENDCHOICES
-
- ABORT
-
- :done
- CLEAR
- TEXT Updating Configuration
- WRITECONFIG <dest>\_DW_.CFG
- IF "<alter>"=="Y" GOTO end
- WRITEFILE <dstdrive>\<prod>.BAT = <dstdrive>\ncd <path>\nDW\ncd \\n
-
- CLEAR
- TEXT \nInstallation complete!\n\n
- ----A batch file was created in the <dstdrive>\ directory with the name <prod>.\n\n
- ----To execute the program, type:\n\n
- ---- <prod> ┘ (Enter)\n\n
- ----Important: In order for this command to work as shown, you must be in
- ---- the <dstdrive>\ directory or have it in your PATH variable.
-
- :end
- WAIT
-
- :end2
- CD <$CurDir>
- goto testend
-
- :no_letters
- CLEAR
- TEXT \n No CD-ROM letters were detected.
- WAIT
- goto testend
-
- :one_letter
- CLEAR
- TEXT \n One CD-ROM drive letter detected.
- WAIT
- goto testend
-
- :no_drives
- CLEAR
- TEXT \n No CD-ROM drivers were detected.
- WAIT
- :testend
-
-
-